package com.hellowx.feignclient;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import javax.websocket.server.PathParam;

/**
 * Created by IntelliJ IDEA.
 *
 * @author MagicMushroom
 * @date 2021/7/20
 */
@Component
@FeignClient(value = "PRODUCT",path = "/product")
public interface ProductClient {
    @GetMapping("/{id}")
    String test(@PathVariable("id") Integer id);
}
